/**
* @ClassName: CandidateServiceI
* @Description: 
* @author YuYang
* @date 2013-6-5 上午12:47:40
*/
package com.demodis.service;

import java.util.List;

import com.demodis.domain.TblCandidate;

public interface CandidateServiceI extends BaseServiceI<TblCandidate> {

	boolean save(TblCandidate t, String realPath);

	TblCandidate getCandidate(Integer canId);

	/**
	 * @param candidate
	 * @param string
	 * @return
	 */
	boolean modify(TblCandidate candidate, String realPath);

	/**
	 * @param catId
	 * @return
	 */
	List<TblCandidate> getByCatId(Integer catId, int userId);

	/**
	 * @param canId
	 * @return
	 */
	TblCandidate getDetailedInfo(Integer canId);

	/**
	 * @param candidate
	 * @return
	 */
	boolean doVote(TblCandidate candidate,int userId);

	/**
	 * @param t
	 * @return
	 */
	Object get(TblCandidate t);
	
	boolean isVote(int userId);

	Object queryVoteState(TblCandidate candidate);

}
